package com.sophon.pattern.proxy.remote;

import java.rmi.Naming;
import java.rmi.registry.LocateRegistry;

public class RemoteServer {

	public static void main(String[] args) throws Exception {
		LocateRegistry.createRegistry(8888);
		Naming.bind("rmi://localhost:8888/doSomething", new RemoteClass());
		System.out.println("server");
	}
}
